/*
 * Copyright (c) 2018 by TangChenBeiJian Information Technology Co.Ltd.
 *           All rights reserved
 */

package org.cx.constant;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 *
 * @author weirx
 * @version 1.0.0
 */
public enum OutsideCodeType {
    OPERATION_ERROR(-5, "操作失败"),
    REGISTER_NOT_FOUND(-1, "暂未开放注册功能"),
    PARAM_ERROR(-2,"参数异常"),
    USERPHONE_EXIST(-3,"该手机号码已经存在，请选择找回密码方式"),
    ORGNO_EXIST(-4,"该连锁已经申请了账号，不能重复申请"),
    VALIDATE_CODE_ERROR(-6, "验证码错误"),
    VALIDATE_NOT_FOUND(-7, "验证码不能为空"),
    CHECK_NEW_PWD(-8,"两次输入的密码不一致"),
    VAIDATE_CODE_NOT_FOUND(-9,"请先获取验证码"),


    ;

    private int code;
    private String message;


    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    OutsideCodeType(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }


}